<?php
	include "../database.php";

	$story_id = $_GET["story_id"];
	$story_time = $_GET["time"];
	
	$query = "UPDATE story SET story_time = '$story_time' WHERE story_id = '$story_id'";
	
	executeQuery($query);
	
	$timeEstimate = array('story_id' => $story_id, 'story_time' => $story_time);
	echo json_encode($timeEstimate);
?>
